var _page_urls = require("../../../utils/page_urls"), _page_urls2 = _interopRequireDefault(_page_urls);

function _interopRequireDefault(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}

var g, app = getApp(), page = app.page, route = app.route, request = app.util.request;

page({
    data: {},
    onLoad: function(e) {
        g = this, request({
            url: "HelpList",
            success: function(e) {
                g.setData({
                    list: e
                });
            }
        });
    },
    toInfo: function(e) {
        route({
            url: "helper_info",
            params: {
                id: e.currentTarget.dataset.item.id
            }
        });
    },
    onShareAppMessage: function(e) {
        return {
            title: "帮助中心",
            imageUrl: "",
            path: _page_urls2.default.helper + "?pid=" + app.userInfo.id
        };
    }
});